<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
    .select_a {
            color: #009688;
            padding: 2px;
            margin: 2px;
            border: #009688 1px dashed;
        }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
                <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" id="name" name="name" class="layui-input" lay-reqtext="请输入名称" placeholder="请输入名称" value="{$row.name|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="text" id="sort" name="sort" class="layui-input" lay-reqtext="请输入排序" placeholder="请输入排序" value="{$row.sort|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">多行文本</label>
            <div class="layui-input-block">
                <textarea name="duiohang" class="layui-textarea textarea" placeholder="请输入多行文本">{$row.duiohang|default=''}</textarea>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">单文件</label>
            <div class="layui-input-block layuimini-upload">
                <input name="danweijain" class="layui-input layui-col-xs6 file" placeholder="请上传单文件" value="{$row.danweijain|default=''}">
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="danweijain" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg|apk|xls|xlsx|txt|doc|docx|ppt|pptx|video" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                <span><a class="layui-btn layui-btn-normal" id="select_danweijain" data-upload-select="danweijain" data-upload-number="one" data-upload-mimetype="file/*"><i class="fa fa-list"></i> 选择</a></span>
            </div>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">多文件</label>
            <div class="layui-input-block layuimini-upload">
                <input name="duowenjian" class="layui-input layui-col-xs6 files" placeholder="请上传多文件" value="{$row.duowenjian|default=''}">
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="duowenjian" data-upload-number="100" data-upload-exts="png|jpg|ico|jpeg|apk|xls|xlsx|txt|doc|docx|ppt|pptx|video" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                <span><a class="layui-btn layui-btn-normal" id="select_duowenjian" data-upload-number="100" data-upload-select="duowenjian" data-upload-mimetype="file/*"><i class="fa fa-list"></i> 选择</a></span>
            </div>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">但图片</label>
            <div class="layui-input-block layuimini-upload">
                <input name="dantupian" class="layui-input layui-col-xs6 img" placeholder="请上传但图片" value="{$row.dantupian|default=''}">
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="dantupian" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg|apk|xls|xlsx|txt|doc|docx|ppt|pptx|video" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                <span><a class="layui-btn layui-btn-normal" id="select_dantupian" data-upload-select="dantupian" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
            </div>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">多图片</label>
            <div class="layui-input-block layuimini-upload">
                <input name="duotupian" class="layui-input layui-col-xs6 imgs" placeholder="请上传多图片" value="{$row.duotupian|default=''}">
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="duotupian" data-upload-number="100" data-upload-exts="png|jpg|ico|jpeg|apk|xls|xlsx|txt|doc|docx|ppt|pptx|video" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                <span><a class="layui-btn layui-btn-normal" id="select_duotupian" data-upload-number="100" data-upload-select="duotupian" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
            </div>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">单选框</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['xialakuang']['option'] as $key=>$vo}
                    <input name="xialakuang" value="{$key}" type="radio" title="{$vo}"  {if $key==$row.xialakuang}checked=""{/if}>
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">多选框</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['duoxuan']['option'] as $key=>$vo}
                    <input name="duoxuan[{$key}]" value="{$key}" type="checkbox" title="{$vo}"  {if in_array($key,explode(',',$row.duoxuan))}checked=""{/if}>
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">下拉框</label>
            <div class="layui-input-block">
                <select name="xialakuangs" class="layui-select" lay-search>
                    <option value="">请选择</option>
                    {foreach $alldata['field']['xialakuangs']['option'] as $key=>$vo}
                    <option value="{$key}" {if $key==$row.xialakuangs}selected{/if}>{$vo|raw}</option>
                    {/foreach}
                </select>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">编辑框</label>
            <div class="layui-input-block">
                <textarea name="bianjikuang" class="layui-textarea editor" style="height: 500px" placeholder="请输入编辑框">{$row.bianjikuang|raw}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开关</label>
            <div class="layui-input-block">
                <input name="kaiguan" value="1" type="checkbox" class="switch" lay-skin="switch" lay-text="开启|关闭" {if $row.kaiguan==1}checked=""{/if}>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">时间</label>
            <div class="layui-input-block">
                <input type="text" name="shijian" class="layui-input datetime" id="shijian" {if is_numeric($row.shijian)}value="{:date('Y-m-d H:i:s',$row.shijian)}" {else}value="{$row.shijian}"{/if}>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input name="status" value="1" type="checkbox" class="switch" lay-skin="switch" lay-text="开启|关闭" {if $row.status==1}checked=""{/if}>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
<script>
    var parameter = '{$parameter|raw|default=""}';
</script>